package com.hliushi.demo.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.FieldNameConstants;

import javax.persistence.*;
import java.io.Serializable;


/**
 * 城市代码维护
 *
 * @author auto generated
 * @date 2021-07-21 10:46:23
 */
@Data
@Entity
@Table(name = "city_dictionary")
@ApiModel(value = "城市代码维护")
@FieldNameConstants
public class CityDictionary implements Serializable {

    private static final long serialVersionUID = 1547145486126316891L;
    /**
     * id
     * nullable : false
     * default  : null
     */
    @Id
    @ApiModelProperty(value = "id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    /**
     * 唯一随机序列
     * nullable : false
     * default  : null
     */
    @ApiModelProperty(value = "唯一随机序列")
    @Column(name = "uu_id", nullable = true, length = 100)
    private String uuId;

    /**
     * 省代码
     * nullable : false
     * default  : null
     */
    @ApiModelProperty(value = "省代码")
    @Column(name = "prov_code", nullable = true, length = 50)
    private String provCode;

    /**
     * 省名称
     * nullable : false
     * default  : null
     */
    @ApiModelProperty(value = "省名称")
    @Column(name = "prov_name", nullable = true, length = 20)
    private String provName;

    /**
     * 市代码
     * nullable : true
     * default  : null
     */
    @ApiModelProperty(value = "市代码")
    @Column(name = "city_code", nullable = true, length = 50)
    private String cityCode;

    /**
     * 市名称
     * nullable : true
     * default  : null
     */
    @ApiModelProperty(value = "市名称")
    @Column(name = "city_name", nullable = true, length = 50)
    private String cityName;

    /**
     * 区/县代码
     * nullable : false
     * default  : null
     */
    @ApiModelProperty(value = "区/县代码")
    @Column(name = "town_code", nullable = true, length = 50)
    private String townCode;

    /**
     * 区/县名称
     * nullable : false
     * default  : null
     */
    @ApiModelProperty(value = "区/县名称")
    @Column(name = "town_name", nullable = true, length = 20)
    private String townName;
}
